
class mod_list(object):
    def __init__(self) -> None:
        self.groupName=[]
        self.items=[]

class mod(object):
    def __init__(self) -> None:
        self.modDesc={"value":""}
        self.id={"value":0}
        self.tagClassName={"value":""}
        self.tagDiscard={"value":0}

class LocalText(object):
    def __init__(self) -> None:
        self.key={"value":""}
        self.id={"value":0}
        self.text={"value":""}

class costItem(object):
    def __init__(self) -> None:
        self.costItem={"value":"0"}
        self.costItemNum={"value":0}
        self.id={"value":0}

class condition(mod):
    def __init__(self) -> None:
        self.key={"value":""}
        self.values=[
            {"value":""},       
            {"value":""},       
            {"value":""},       
            {"value":""},       
            {"value":""},       
            {"value":""},       
            {"value":""},       
            {"value":""}      
        ]
        super().__init__()

class function(mod):
    def __init__(self) -> None:
        self.key={"value":"addAttr"}
        self.values=[
            {"value":"atk"},       
            {"value":"0"},       
            {"value":"0"},       
            {"value":""},       
            {"value":""},       
            {"value":""},       
            {"value":""},       
            {"value":""}             
        ]
        super().__init__()

class dramaDialogue(mod):
    def __init__(self) -> None:
        self.uiType={"value": "1"}        
        self.condition=mod_list().__dict__
        self.weight={"value": 1}
        self.dialogue=LocalText().__dict__
        self.soundsBg={"value": "0"}
        self.soundsEffect={"value": "0"}
        self.openFunction=mod_list().__dict__
        self.function=mod_list().__dict__   
        self.dramaOptions=mod_list().__dict__  
        self.npcLeftType={"value": "1"} 
        self.npcLeft={"value": "-1"} 
        self.npcRightType={"value": "1"} 
        self.npcRight={"value": "-1"} 
        self.speaker={"value": "1"} 
        self.title=LocalText().__dict__
        self.backgroud={"value": ""}     
        self.nextDialogue={"value": "0"} 
        self.resetLeftNPC={"value": "0"} 
        self.resetRightNPC={"value": "0"} 

        super().__init__()
        
class dramaOptions(mod):
    def __init__(self) -> None:
        self.condition=mod_list().__dict__
        self.text=LocalText().__dict__
        self.costItem=costItem().__dict__
        self.function=mod_list().__dict__
        self.nextDialogue={"value":""}
        super().__init__()

class fortuitousEvent(mod):
    def __init__(self) -> None:
        self.triggerType={"value": "1&0"}        
        self.condition=mod_list().__dict__
        self.triggerRate={"value": 10000}
        self.repeatedly={"value": "1"}
        self.triggerCD={"value": 0}
        self.cdGroup={"value": 0}
        self.setNPCA={"value": "0"}
        self.setNPCB={"value": "0"}
        self.dramaID={"value": "0"}
        self.function=mod_list().__dict__        
        super().__init__()

class mapPosition(mod):
    def __init__(self) -> None:
        self.areaID={"value": "0"}
        self.posiType={"value": "1"}
        self.posiID=[{"value": "3"}]
        self.buildingIndex={"value": "-1"}
        super().__init__()

class npcCondition(mod):
    def __init__(self) -> None:
        self.areaID={"value": "0"}
        self.grade={"value": "0"}
        self.sortType={"value": "0&0"}
        self.condition=mod_list().__dict__
        self.save={"value": "0"}
        super().__init__()

class roleCreateFeature(mod):
    def __init__(self) -> None:
        self.type={"value": "1"}      
        self.level={"value": "1"} 
        self.name=LocalText().__dict__ 
        self.effect=mod_list().__dict__    
        self.tips=LocalText().__dict__
        self.type1Data={
            "introduceText":LocalText().__dict__,
            "weightRate":{"value":10000}
        }
        self.type2Data={    
            "conceal": {
                "value": ""
            },
            "duration": {
                "value": -1
            },
            "refreshType": {
                "value": "3"
            }
        }
        self.type3Data={
            "group": {
                "value": 0
            },
            "weightRate": {
                "value": 10000
            },
            "gradeMin": {
                "value": ""
            },
            "picture": {
                "value": ""
            },
            "desc": LocalText().__dict__
        }
        super().__init__()
        del self.modDesc

class roleEffect(mod):
    def __init__(self) -> None:

        self.type={"value": "1"}  
        self.valueType={"value": ""}  
        self.values=[
                    {"value":""},       
                    {"value":""},       
                    {"value":""},       
                    {"value":""},       
                    {"value":""},       
                    {"value":""},       
                    {"value":""},       
                    {"value":""}             
                ]
        super().__init__()
        del self.tagClassName
        del self.tagDiscard


class itemPill(mod):
    def __init__(self) -> None:
        self.roleEffect=roleEffect().__dict__
        self.basType={"value": "0"}  
        self.basRequire={"value": 0}  
        self.grade={"value": "1"}  
        self.operEquip={"value": "0"}  
        self.carryCount={"value": 0}  
        super().__init__()
        del self.modDesc

class itemBook(object):
    def __init__(self) -> None:
        self.page={"value": 0}  
        self.descs=[]

class itemHorse(object):
    def __init__(self) -> None:
        self.effectValue=mod_list().__dict__
        self.model={"value": "0"}  
        self.mapMoveSounds={"value": "0"}  
        self.desc=LocalText().__dict__
        self.grade={"value": ""}  
        self.descs=[]

class itemTreasureMap(object):
    def __init__(self) -> None:
        self.eventID={"value": ""}  
        self.pointType={"value": ""}  
        self.pointValues=[]
        self.costItem=costItem().__dict__

class itemRing(object):
    def __init__(self) -> None:
        self.grade={"value": ""}  
        self.capacity={"value": 0}
        self.effectValue=mod_list().__dict__

class worldFortuitousEventBase(mod):

    def __init__(self) -> None:
        self.name=LocalText().__dict__
        self.icon={"value": "axi"}  
        self.moveCamGridEffect={"value": "0"}  
        self.createFunction=mod_list().__dict__
        self.duration={"value":-1}
        self.setNPCA={"value": "0"}
        self.setNPCB={"value": "0"}
        self.dramaID={"value": "0"}  
        self.moveOnFunction=mod_list().__dict__
        self.notNPCDramaID={"value": "0"}  
        self.maxCount={"value": 0}
        self.appearMap={"value": "0"}  
        super().__init__()


class itemProps(mod):

    def __init__(self) -> None:
        self.name=LocalText().__dict__
        self.desc=LocalText().__dict__
        self.itemType={"value": "1"}
        self.type={"value": "0"}
        self.className={"value": "602"}
        self.icon={"value": "1jian"}
        self.level={"value": "1"}
        self.isOverlay={"value": "0"}
        self.drop={"value": "0"}
        self.sale={"value": 0}
        self.itemPill=itemPill().__dict__
        self.itemBook=itemBook().__dict__
        self.itemHorse=itemHorse().__dict__
        self.itemTreasureMap=itemTreasureMap().__dict__
        self.itemRing=itemRing().__dict__
        super().__init__()
        del self.modDesc

class taskBase(mod):

    def __init__(self) -> None:
        self.name=LocalText().__dict__
        self.desc=LocalText().__dict__
        self.type={"value": "0"}
        self.level={"value": "1"}
        self.duration={"value": 0}
        self.isGive={"value": "0"}
        self.completeTaskFunction=mod_list().__dict__
        self.remind={"value": "0"}
        self.task110={
                    "fortuitousEventID": {
                        "value": "0"
                    },
                    "positionID": {
                        "value": "-279233835"
                    }
                }
        super().__init__()
        del self.modDesc

class DramaNpc(mod):

    def __init__(self) -> None:
        self.name=LocalText().__dict__
        self.avatar={"value": "3104"}
        super().__init__()


class npcAddWorld(mod):

    def __init__(self) -> None:
        self.pointType={"value": "0"}
        self.pointValue={"value": ""}
        self.grade={"value": "0"}
        self.sex={"value": "0"}
        self.age={"value": 1}
        self.life={"value": 0}
        self.name1=LocalText().__dict__
        self.name2=LocalText().__dict__
        self.bornLuck={"value": "0"}
        self.addLuck={"value": "0"}
        self.inTrait={"value": "0"}
        self.outTrait={"value": "0"}
        self.dressMan={
                    "dress": {
                        "value": ""
                    },
                    "id": {
                        "value": 0
                    }
                }
        self.dressWoman={
                    "dress": {
                        "value": ""
                    },
                    "id": {
                        "value": 0
                    }
                }
        self.unitRelationCount={"value": "1"}
        self.unitRelationType={"value": "1"}
        self.unitRelationValue={"value": "1"}
        self.unitRelationIntim={"value": "0"}
        self.attr={"value": ""}
        self.isJoinSchool={"value": "0"}
        self.schoolName={"value": ""}
        self.schoolPostType={"value": ""}
        self.isHeart={"value": "0"}
        self.isNotDie={"value": "0"}
        super().__init__()
        del self.modDesc


class schoolSmall(mod):

    def __init__(self) -> None:
        self.lastName=LocalText().__dict__
        self.feature={"value": ""}
        self.mustskillType={"value": "0"}
        self.needFate={"value": ""}
        self.stand={"value": "1"}
        self.schoolSloganType1_1={"value": "411"}
        self.schoolSloganType1_2={"value": "412"}
        self.schoolSloganType2_1={"value": "415"}
        self.schoolSloganType2_2={"value": "416"}
        self.dungeonID={"value": "-829039436"}
        self.applySchoolCondition=mod_list().__dict__
        self.applySchoolDrama={"value": "0"}
        self.mustskillType={"value": "0"}
        self.buildIcon={"value": "1"}
        self.basRequire={"value": 0}
        self.closeRequire={"value": 1}
        self.applyGrade={"value": "2"}
        self.money={"value": 50000}
        self.herbal={"value": 1000}
        self.mine={"value": 1000}
        self.schoolMain={"value": "0"}
        self.bigElders={"value": 0}
        self.elders={"value": 5}
        self.inherit={"value":0}
        self.inner={"value":5}
        self.outer={"value":10}
        self.population={"value":25}
        self.reputation={"value":300}
        self.territory={"value":4}
        self.stable={"value":800}
        self.prosperous={"value":2000}
        self.loyalty={"value":100}
        self.skillInit={"value":2}

        super().__init__()


class schoolInitScale(schoolSmall):
    def __init__(self) -> None:
        super().__init__()
        self.area={"value": "2"}
        self.buildIcon={"value": "2"}



class schoolCustom(mod):
    def __init__(self) -> None:
        self.area={"value": 8}
        self.index={"value": 0}
        self.findStand={"value": 1}
        self.name=LocalText().__dict__
        self.feature={"value": ""}
        self.skillType={"value": "0"}
        self.schoolSloganType1_1={"value": "411"}
        self.schoolSloganType1_2={"value": "0"}
        self.schoolSloganType2_1={"value": "0"}
        self.schoolSloganType2_2={"value": "0"}
        super().__init__()
        del self.modDesc
        del self.tagClassName
        del self.tagDiscard
        del self.name

class horseModel(mod):
    def __init__(self) -> None:

        self.animBG={"value": "1"}
        self.posiBG={"value": ""}
        self.scaleBG={"value": 1.0}
        self.animMap={"value": "1"}
        self.posiMap={"value": ""}
        self.scaleMap={"value": 1.0}
        self.posiPlayer={"value": ""}
        self.playerHorseAnim={"value": "IdleHores"}
        self.effectMap={"value": "0"}
        self.effectMapLayer={"value": "0"}
        self.posiEffectMap={"value": ""}
        self.scalscaleEffectMapeMap={"value": 1.0}
        self.effectBG={"value": "0"}
        self.effectBGLayer={"value": "0"}
        self.posiEffectBG={"value": ""}
        self.scaleEffectBG={"value": 1.0}
        super().__init__()
        del self.modDesc
        
class dungeonBase(mod):
    def __init__(self) -> None:
        self.name=LocalText().__dict__
        self.icon={"value": "ax1"}
        self.sceneBaseID={"value": "1111"}
        self.width={"value": 40}
        self.height={"value": 20}
        self.transferType={"value": "0"}
        self.roomCount={"value": 0}
        self.unitCommonWaveCount={"value": 0}
        self.unitCommonUnitAttr=mod_list().__dict__
        self.unitCommonNum={"value": -1}
        self.unitEliteWaveCount={"value": 0}
        self.unitEliteUnitAttr=mod_list().__dict__
        self.unitEliteNum={"value": -1}
        self.isCreateBoss={"value": "1"}
        self.unitBossUnitAttr=mod_list().__dict__
        self.victory={"value": "1"}
        self.fail={"value": "0"}
        self.timeLimit={"value": -1}
        self.flee={"value": "1"}
        self.winFunction=mod_list().__dict__
        self.loseFunction=mod_list().__dict__
        self.setout={"value": "1"}
        self.sounds={"value": "fuben/zhulin"}
        super().__init__()

class dropID(mod):
    def __init__(self) -> None:
        self.condition=mod_list().__dict__
        self.rewardType={"value": "7"}
        self.rewardValues=[
            {
                "value": "3031101"
            },
            {
                "value": "1"
            },
            {
                "value": "100"
            },
            {
                "value": "100"
            },
            {
                "value": "1"
            }
        ]
        super().__init__()
        del self.modDesc


        



class unitEliteUnitAttr(mod):
    def __init__(self) -> None:
        self.name=LocalText().__dict__
        self.baseID={"value": "736"}
        self.modelScale={"value": 100}
        self.growPercent={"value": 100}
        self.attrScale=mod_list().__dict__
        self.unitBossUnitAttr=mod_list().__dict__
        self.dropID={"rewardID":0,'groupName':[],'items':[]}
        self.firstReward={"rewardID":0,'groupName':[],'items':[]}
        self.weightBase={"value": 10000}
        self.type={"value":0}
        super().__init__()

class unitBossUnitAttr(unitEliteUnitAttr):
    def __init__(self) -> None:
        super().__init__()